package com.content.controller;

import com.content.model.vo.AllCategoryResult;
import com.content.service.CourseCategoryService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@Api("课程分类接口")
public class CourseCategoryController {

    @Autowired
    private CourseCategoryService courseCategoryService;
    @ApiOperation("课程分类信息接口获取")
    @GetMapping("course-category/tree-nodes")
    public List<AllCategoryResult> getAllCategoryList() {
        return courseCategoryService.getAllCategory("1");
    }
}
